package bsts.model;

import java.io.Serializable;

public class User implements Serializable {

	private static final long serialVersionUID = 1L;

	private String userId;
	private String surname;
	private String firstname;
	private String secondname;
	private String nric;
	private String password;
	private UserRole userRole;
	private AccountStatus accountStatus;

	public User(String userId, String surname, String firstname,
			String secondname, String nric, String password, UserRole userRole) {
		this.userId = userId;
		this.surname = surname;
		this.firstname = firstname;
		this.secondname = secondname;
		this.nric = nric;
		this.password = password;
		this.userRole = userRole;
		this.accountStatus = AccountStatus.Activated;
	}

	public User(String userId, String surname, String firstname, String nric,
			String password, UserRole userRole) {
		this.userId = userId;
		this.surname = surname;
		this.firstname = firstname;
		this.secondname = null;
		this.nric = nric;
		this.password = password;
		this.userRole = userRole;
		this.accountStatus = AccountStatus.Activated;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getSecondname() {
		return secondname;
	}

	public void setSecondname(String secondname) {
		this.secondname = secondname;
	}

	public String getNric() {
		return nric;
	}

	public void setNric(String nric) {
		this.nric = nric;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public UserRole getUserRole() {
		return userRole;
	}

	public void setUserRole(UserRole userRole) {
		this.userRole = userRole;
	}

	public AccountStatus getAccountStatus() {
		return accountStatus;
	}

	public void setAccountStatus(AccountStatus accountStatus) {
		this.accountStatus = accountStatus;
	}

}
